<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: CUdpServer类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="#pro-static-methods">静态 Protected 成员函数</a> &#124;
<a href="#pri-methods">Private 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="class_c_udp_server-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">CUdpServer类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>udp服务类，用于连接发送功能 固删除无对端地址的读写函数，若要连接发送功能请使用CUdpClint功能类  
 <a href="class_c_udp_server.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_udp_server_8h_source.html">UdpServer.h</a>&gt;</code></p>
<div class="dynheader">
类 CUdpServer 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_c_udp_server.png" usemap="#CUdpServer_map" alt=""/>
  <map id="CUdpServer_map" name="CUdpServer_map">
<area href="class_c_udp_base.html" alt="CUdpBase" shape="rect" coords="0,56,96,80"/>
<area href="class_c_basic_service.html" title="服务类 基类" alt="CBasicService" shape="rect" coords="0,0,96,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a1822fe02505a31d617e136515243a2a1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_server.html#a1822fe02505a31d617e136515243a2a1">CUdpServer</a> (bool isWriteLog)</td></tr>
<tr class="separator:a1822fe02505a31d617e136515243a2a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57d265889fc60581f3274d424c3325bb"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_server.html#a57d265889fc60581f3274d424c3325bb">~CUdpServer</a> ()</td></tr>
<tr class="separator:a57d265889fc60581f3274d424c3325bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5862a7fd4ea7b754552eedc19cfdaa53"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_c_sock_error.html">CSockError</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_server.html#a5862a7fd4ea7b754552eedc19cfdaa53">Init</a> (<a class="el" href="class_c_socket.html">CSocket</a> &amp;sock, bool isServer)</td></tr>
<tr class="memdesc:a5862a7fd4ea7b754552eedc19cfdaa53"><td class="mdescLeft">&#160;</td><td class="mdescRight">将sock与服务类绑定，一个socket只能绑定一个udp服务类  <a href="class_c_udp_server.html#a5862a7fd4ea7b754552eedc19cfdaa53">更多...</a><br /></td></tr>
<tr class="separator:a5862a7fd4ea7b754552eedc19cfdaa53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb69d95dd3123fd4f56d565a19fbec67"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_server.html#aeb69d95dd3123fd4f56d565a19fbec67">AsyncRecvfrom</a> (<a class="el" href="class_c_udp_socket.html">CUdpSocket</a> &amp;sock, const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;buff, <a class="el" href="class_c_sock_addr.html">CSockAddr</a> *addr, const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;func, void *invoker=<a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>)</td></tr>
<tr class="memdesc:aeb69d95dd3123fd4f56d565a19fbec67"><td class="mdescLeft">&#160;</td><td class="mdescRight">投递一个接收请求  <a href="class_c_udp_server.html#aeb69d95dd3123fd4f56d565a19fbec67">更多...</a><br /></td></tr>
<tr class="separator:aeb69d95dd3123fd4f56d565a19fbec67"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a304307c8af55a434f960791a3c038d23"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_server.html#a304307c8af55a434f960791a3c038d23">AsyncSendTo</a> (<a class="el" href="class_c_udp_socket.html">CUdpSocket</a> &amp;sock, const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;buff, <a class="el" href="class_c_sock_addr.html">CSockAddr</a> *addr, const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;func, void *invoker=<a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>)</td></tr>
<tr class="memdesc:a304307c8af55a434f960791a3c038d23"><td class="mdescLeft">&#160;</td><td class="mdescRight">投递一个写请求  <a href="class_c_udp_server.html#a304307c8af55a434f960791a3c038d23">更多...</a><br /></td></tr>
<tr class="separator:a304307c8af55a434f960791a3c038d23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57d65bbcd1d3593a1c82ac3765c67ca3"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_server.html#a57d65bbcd1d3593a1c82ac3765c67ca3">Post</a> (const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;func, void *invoker=<a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>)</td></tr>
<tr class="memdesc:a57d65bbcd1d3593a1c82ac3765c67ca3"><td class="mdescLeft">&#160;</td><td class="mdescRight">投递一个中断请求  <a href="class_c_udp_server.html#a57d65bbcd1d3593a1c82ac3765c67ca3">更多...</a><br /></td></tr>
<tr class="separator:a57d65bbcd1d3593a1c82ac3765c67ca3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a094ecc90a9e5cd326a58928bf48ce08c"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_server.html#a094ecc90a9e5cd326a58928bf48ce08c">Run</a> ()</td></tr>
<tr class="memdesc:a094ecc90a9e5cd326a58928bf48ce08c"><td class="mdescLeft">&#160;</td><td class="mdescRight">运行服务  <a href="class_c_udp_server.html#a094ecc90a9e5cd326a58928bf48ce08c">更多...</a><br /></td></tr>
<tr class="separator:a094ecc90a9e5cd326a58928bf48ce08c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed8baba7d9895b6895d9624ee8cb1bf4"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_server.html#aed8baba7d9895b6895d9624ee8cb1bf4">Run_One</a> ()</td></tr>
<tr class="memdesc:aed8baba7d9895b6895d9624ee8cb1bf4"><td class="mdescLeft">&#160;</td><td class="mdescRight">运行一次服务  <a href="class_c_udp_server.html#aed8baba7d9895b6895d9624ee8cb1bf4">更多...</a><br /></td></tr>
<tr class="separator:aed8baba7d9895b6895d9624ee8cb1bf4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a926f304c91aa6e0d66e7fe7f3189f5e6"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_server.html#a926f304c91aa6e0d66e7fe7f3189f5e6">NotifyStop</a> ()</td></tr>
<tr class="memdesc:a926f304c91aa6e0d66e7fe7f3189f5e6"><td class="mdescLeft">&#160;</td><td class="mdescRight">通知服务停止  <a href="class_c_udp_server.html#a926f304c91aa6e0d66e7fe7f3189f5e6">更多...</a><br /></td></tr>
<tr class="separator:a926f304c91aa6e0d66e7fe7f3189f5e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8963defe56982aaff79417667d23da96"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_server.html#a8963defe56982aaff79417667d23da96">IsStop</a> () const</td></tr>
<tr class="memdesc:a8963defe56982aaff79417667d23da96"><td class="mdescLeft">&#160;</td><td class="mdescRight">服务是否停止  <a href="class_c_udp_server.html#a8963defe56982aaff79417667d23da96">更多...</a><br /></td></tr>
<tr class="separator:a8963defe56982aaff79417667d23da96"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2242ee6ccbb71fa768ba191c8a61f9a2"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_server.html#a2242ee6ccbb71fa768ba191c8a61f9a2">WaitServerStop</a> ()</td></tr>
<tr class="memdesc:a2242ee6ccbb71fa768ba191c8a61f9a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">通知服务停止并等待  <a href="class_c_udp_server.html#a2242ee6ccbb71fa768ba191c8a61f9a2">更多...</a><br /></td></tr>
<tr class="separator:a2242ee6ccbb71fa768ba191c8a61f9a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ebcef4f1740e51441e89af47f89d2e5"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_c_io_port_service.html">CIoPortService</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_server.html#a2ebcef4f1740e51441e89af47f89d2e5">GetIoPortService</a> ()</td></tr>
<tr class="memdesc:a2ebcef4f1740e51441e89af47f89d2e5"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取底层服务类  <a href="class_c_udp_server.html#a2ebcef4f1740e51441e89af47f89d2e5">更多...</a><br /></td></tr>
<tr class="separator:a2ebcef4f1740e51441e89af47f89d2e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_c_udp_base"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_c_udp_base')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="class_c_udp_base.html">CUdpBase</a></td></tr>
<tr class="memitem:a5c7cde2ecd9ead7b5d0ad577163a6db1 inherit pub_methods_class_c_udp_base"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_base.html#a5c7cde2ecd9ead7b5d0ad577163a6db1">CUdpBase</a> (bool isWriteLog)</td></tr>
<tr class="separator:a5c7cde2ecd9ead7b5d0ad577163a6db1 inherit pub_methods_class_c_udp_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7c3795c134f83c50a95aa013875c2f3 inherit pub_methods_class_c_udp_base"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_base.html#ac7c3795c134f83c50a95aa013875c2f3">~CUdpBase</a> ()</td></tr>
<tr class="separator:ac7c3795c134f83c50a95aa013875c2f3 inherit pub_methods_class_c_udp_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_c_basic_service"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_c_basic_service')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="class_c_basic_service.html">CBasicService</a></td></tr>
<tr class="memitem:a73a67d340b0d83df8c02834ec89edc2b inherit pub_methods_class_c_basic_service"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_basic_service.html#a73a67d340b0d83df8c02834ec89edc2b">CBasicService</a> ()</td></tr>
<tr class="memdesc:a73a67d340b0d83df8c02834ec89edc2b inherit pub_methods_class_c_basic_service"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造一个服务基类对象  <a href="class_c_basic_service.html#a73a67d340b0d83df8c02834ec89edc2b">更多...</a><br /></td></tr>
<tr class="separator:a73a67d340b0d83df8c02834ec89edc2b inherit pub_methods_class_c_basic_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a772031ad3c140a387b8b1e4f7bc4bed5 inherit pub_methods_class_c_basic_service"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_basic_service.html#a772031ad3c140a387b8b1e4f7bc4bed5">~CBasicService</a> ()</td></tr>
<tr class="memdesc:a772031ad3c140a387b8b1e4f7bc4bed5 inherit pub_methods_class_c_basic_service"><td class="mdescLeft">&#160;</td><td class="mdescRight">销毁一个服务基类对象  <a href="class_c_basic_service.html#a772031ad3c140a387b8b1e4f7bc4bed5">更多...</a><br /></td></tr>
<tr class="separator:a772031ad3c140a387b8b1e4f7bc4bed5 inherit pub_methods_class_c_basic_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:a18883092a65b385806b3cb3552f56f38"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_server.html#a18883092a65b385806b3cb3552f56f38">DelTimer</a> (<a class="el" href="class_c_timer_base.html">CTimerBase</a> &amp;timer)</td></tr>
<tr class="separator:a18883092a65b385806b3cb3552f56f38"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a007ed280c7fb7066bc957425e7dc746b"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_server.html#a007ed280c7fb7066bc957425e7dc746b">UpdateTimer</a> (<a class="el" href="class_c_timer_base.html">CTimerBase</a> &amp;timer)</td></tr>
<tr class="separator:a007ed280c7fb7066bc957425e7dc746b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb3e2cc49ab20aeaf396c40e28f58627"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_server.html#aeb3e2cc49ab20aeaf396c40e28f58627">SetTimer</a> (<a class="el" href="class_c_timer_base.html">CTimerBase</a> &amp;timer)</td></tr>
<tr class="separator:aeb3e2cc49ab20aeaf396c40e28f58627"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-static-methods"></a>
静态 Protected 成员函数</h2></td></tr>
<tr class="memitem:a4287fe6a8d3a5fe821d4faf52fc68ebc"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_server.html#a4287fe6a8d3a5fe821d4faf52fc68ebc">IoCompleteFunc</a> (<a class="el" href="struct_o_v_e_r_l_a_p_p_e_d___e_x.html">OVERLAPPED_EX</a> *oved)</td></tr>
<tr class="separator:a4287fe6a8d3a5fe821d4faf52fc68ebc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private 成员函数</h2></td></tr>
<tr class="memitem:abfe448eff91e8158ecab4bddc591b831"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_server.html#abfe448eff91e8158ecab4bddc591b831">delete_class_copy_operator</a> (<a class="el" href="class_c_udp_server.html">CUdpServer</a>)</td></tr>
<tr class="separator:abfe448eff91e8158ecab4bddc591b831"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">删除的函数</div></td></tr>
<tr class="memitem:ab3dc993e182247fb5305a71fb1e63bd1"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_server.html#ab3dc993e182247fb5305a71fb1e63bd1">AsyncRead</a> (<a class="el" href="class_c_udp_socket.html">CUdpSocket</a> &amp;sock, const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;buff, const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;func, void *invoker=<a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>)</td></tr>
<tr class="separator:ab3dc993e182247fb5305a71fb1e63bd1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac49e37eb7fe3c4b0e722f9bc5d55cd82"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_server.html#ac49e37eb7fe3c4b0e722f9bc5d55cd82">AsyncSend</a> (<a class="el" href="class_c_udp_socket.html">CUdpSocket</a> &amp;sock, const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;buff, const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;func, void *invoker=<a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>)</td></tr>
<tr class="separator:ac49e37eb7fe3c4b0e722f9bc5d55cd82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed63085d5b5beee5d179b8eeb5be664d"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_server.html#aed63085d5b5beee5d179b8eeb5be664d">AsyncConnect</a> (<a class="el" href="class_c_udp_socket.html">CUdpSocket</a> &amp;sock, const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;func, void *invoker=<a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>)</td></tr>
<tr class="memdesc:aed63085d5b5beee5d179b8eeb5be664d"><td class="mdescLeft">&#160;</td><td class="mdescRight">投递一个连接请求  <a href="class_c_udp_server.html#aed63085d5b5beee5d179b8eeb5be664d">更多...</a><br /></td></tr>
<tr class="separator:aed63085d5b5beee5d179b8eeb5be664d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:a7c2f7216c3241414dc4d76175240a42d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_c_io_port_service.html">CIoPortService</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_server.html#a7c2f7216c3241414dc4d76175240a42d">_service</a></td></tr>
<tr class="separator:a7c2f7216c3241414dc4d76175240a42d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>udp服务类，用于连接发送功能 固删除无对端地址的读写函数，若要连接发送功能请使用CUdpClint功能类 </p>

<p class="definition">在文件 <a class="el" href="_udp_server_8h_source.html">UdpServer.h</a> 第 <a class="el" href="_udp_server_8h_source.html#l00014">14</a> 行定义.</p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a1822fe02505a31d617e136515243a2a1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1822fe02505a31d617e136515243a2a1">&#9670;&nbsp;</a></span>CUdpServer()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a> CUdpServer::CUdpServer </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isWriteLog</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_udp_server_8cpp_source.html">UdpServer.cpp</a> 第 <a class="el" href="_udp_server_8cpp_source.html#l00014">14</a> 行定义.</p>

</div>
</div>
<a id="a57d265889fc60581f3274d424c3325bb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a57d265889fc60581f3274d424c3325bb">&#9670;&nbsp;</a></span>~CUdpServer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CUdpServer::~CUdpServer </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_udp_server_8cpp_source.html">UdpServer.cpp</a> 第 <a class="el" href="_udp_server_8cpp_source.html#l00023">23</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="aed63085d5b5beee5d179b8eeb5be664d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aed63085d5b5beee5d179b8eeb5be664d">&#9670;&nbsp;</a></span>AsyncConnect()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void CUdpServer::AsyncConnect </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_socket.html">CUdpSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em> = <code><a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>投递一个连接请求 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>待连接的套接字 </td></tr>
    <tr><td class="paramname">func</td><td>完成回调函数 </td></tr>
    <tr><td class="paramname">invoker</td><td>上层用户数据 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section remark"><dt>备注</dt><dd>CUdpServer将会删掉此功能，上层若调用则不会触发任何操作 </dd></dl>

<p>实现了 <a class="el" href="class_c_udp_base.html#a2c90c99cb091d60480807292b4b550ce">CUdpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_server_8h_source.html">UdpServer.h</a> 第 <a class="el" href="_udp_server_8h_source.html#l00023">23</a> 行定义.</p>

</div>
</div>
<a id="ab3dc993e182247fb5305a71fb1e63bd1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab3dc993e182247fb5305a71fb1e63bd1">&#9670;&nbsp;</a></span>AsyncRead()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void CUdpServer::AsyncRead </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_socket.html">CUdpSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em> = <code><a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="class_c_udp_base.html#a8ffbb760ed06200df0a7a1c2491e4f02">CUdpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_server_8h_source.html">UdpServer.h</a> 第 <a class="el" href="_udp_server_8h_source.html#l00021">21</a> 行定义.</p>

</div>
</div>
<a id="aeb69d95dd3123fd4f56d565a19fbec67"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeb69d95dd3123fd4f56d565a19fbec67">&#9670;&nbsp;</a></span>AsyncRecvfrom()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpServer::AsyncRecvfrom </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_socket.html">CUdpSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_c_sock_addr.html">CSockAddr</a> *&#160;</td>
          <td class="paramname"><em>addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em> = <code><a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>投递一个接收请求 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>已绑定的套接字 </td></tr>
    <tr><td class="paramname">buff</td><td>接收缓冲 </td></tr>
    <tr><td class="paramname">addr</td><td>接收的地址信息 </td></tr>
    <tr><td class="paramname">func</td><td>完成回调函数 </td></tr>
    <tr><td class="paramname">invoker</td><td>上层用户数据 </td></tr>
  </table>
  </dd>
</dl>

<p>实现了 <a class="el" href="class_c_udp_base.html#aeafb176079a0e2ef6201f38055e33872">CUdpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_server_8cpp_source.html">UdpServer.cpp</a> 第 <a class="el" href="_udp_server_8cpp_source.html#l00043">43</a> 行定义.</p>

</div>
</div>
<a id="ac49e37eb7fe3c4b0e722f9bc5d55cd82"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac49e37eb7fe3c4b0e722f9bc5d55cd82">&#9670;&nbsp;</a></span>AsyncSend()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void CUdpServer::AsyncSend </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_socket.html">CUdpSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em> = <code><a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="class_c_udp_base.html#afaa45e06d21d0ef2c3cdb965b4a62466">CUdpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_server_8h_source.html">UdpServer.h</a> 第 <a class="el" href="_udp_server_8h_source.html#l00022">22</a> 行定义.</p>

</div>
</div>
<a id="a304307c8af55a434f960791a3c038d23"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a304307c8af55a434f960791a3c038d23">&#9670;&nbsp;</a></span>AsyncSendTo()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpServer::AsyncSendTo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_socket.html">CUdpSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_c_sock_addr.html">CSockAddr</a> *&#160;</td>
          <td class="paramname"><em>addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em> = <code><a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>投递一个写请求 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>已绑定的套接字 </td></tr>
    <tr><td class="paramname">buff</td><td>发送缓冲 </td></tr>
    <tr><td class="paramname">addr</td><td>发送的地址信息 </td></tr>
    <tr><td class="paramname">func</td><td>完成回调函数 </td></tr>
    <tr><td class="paramname">invoker</td><td>上层用户数据 </td></tr>
  </table>
  </dd>
</dl>

<p>实现了 <a class="el" href="class_c_udp_base.html#ab4230b4e3f8b762451f49ec97efdc412">CUdpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_server_8cpp_source.html">UdpServer.cpp</a> 第 <a class="el" href="_udp_server_8cpp_source.html#l00053">53</a> 行定义.</p>

</div>
</div>
<a id="abfe448eff91e8158ecab4bddc591b831"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abfe448eff91e8158ecab4bddc591b831">&#9670;&nbsp;</a></span>delete_class_copy_operator()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CUdpServer::delete_class_copy_operator </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_server.html">CUdpServer</a>&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a18883092a65b385806b3cb3552f56f38"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a18883092a65b385806b3cb3552f56f38">&#9670;&nbsp;</a></span>DelTimer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpServer::DelTimer </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_timer_base.html">CTimerBase</a> &amp;&#160;</td>
          <td class="paramname"><em>timer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="class_c_udp_base.html#a14a97c2f7a8c0b4421cf81503b071d31">CUdpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_server_8cpp_source.html">UdpServer.cpp</a> 第 <a class="el" href="_udp_server_8cpp_source.html#l00114">114</a> 行定义.</p>

</div>
</div>
<a id="a2ebcef4f1740e51441e89af47f89d2e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2ebcef4f1740e51441e89af47f89d2e5">&#9670;&nbsp;</a></span>GetIoPortService()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_io_port_service.html">CIoPortService</a> * CUdpServer::GetIoPortService </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取底层服务类 </p>

<p>实现了 <a class="el" href="class_c_udp_base.html#af6768c0abfb54cce387c6b353b5e9dd0">CUdpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_server_8cpp_source.html">UdpServer.cpp</a> 第 <a class="el" href="_udp_server_8cpp_source.html#l00109">109</a> 行定义.</p>

</div>
</div>
<a id="a5862a7fd4ea7b754552eedc19cfdaa53"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5862a7fd4ea7b754552eedc19cfdaa53">&#9670;&nbsp;</a></span>Init()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_sock_error.html">CSockError</a> CUdpServer::Init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_socket.html">CSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isServer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>将sock与服务类绑定，一个socket只能绑定一个udp服务类 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>待绑定的套接字类 </td></tr>
    <tr><td class="paramname">isServer</td><td>初始化类型,必须为false </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回SUCC，失败返回相应的错误码 </dd></dl>
<dl class="section remark"><dt>备注</dt><dd>isServer必须为false,初始化之前需要绑定端口地址 </dd></dl>

<p>实现了 <a class="el" href="class_c_udp_base.html#a615adef818eec9c6465fe5c7ff68ea3d">CUdpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_server_8cpp_source.html">UdpServer.cpp</a> 第 <a class="el" href="_udp_server_8cpp_source.html#l00028">28</a> 行定义.</p>

</div>
</div>
<a id="a4287fe6a8d3a5fe821d4faf52fc68ebc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4287fe6a8d3a5fe821d4faf52fc68ebc">&#9670;&nbsp;</a></span>IoCompleteFunc()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> CUdpServer::IoCompleteFunc </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_o_v_e_r_l_a_p_p_e_d___e_x.html">OVERLAPPED_EX</a> *&#160;</td>
          <td class="paramname"><em>oved</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_udp_server_8cpp_source.html">UdpServer.cpp</a> 第 <a class="el" href="_udp_server_8cpp_source.html#l00143">143</a> 行定义.</p>

</div>
</div>
<a id="a8963defe56982aaff79417667d23da96"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8963defe56982aaff79417667d23da96">&#9670;&nbsp;</a></span>IsStop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CUdpServer::IsStop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>服务是否停止 </p>
<dl class="section return"><dt>返回</dt><dd>停止服务返回true,未停止返回false </dd></dl>

<p>实现了 <a class="el" href="class_c_udp_base.html#a1b617bf569035b349d5f9e3fa7c1062d">CUdpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_server_8cpp_source.html">UdpServer.cpp</a> 第 <a class="el" href="_udp_server_8cpp_source.html#l00096">96</a> 行定义.</p>

</div>
</div>
<a id="a926f304c91aa6e0d66e7fe7f3189f5e6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a926f304c91aa6e0d66e7fe7f3189f5e6">&#9670;&nbsp;</a></span>NotifyStop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpServer::NotifyStop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>通知服务停止 </p>

<p>实现了 <a class="el" href="class_c_udp_base.html#a3278a0321a26d29983c080eebad9865e">CUdpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_server_8cpp_source.html">UdpServer.cpp</a> 第 <a class="el" href="_udp_server_8cpp_source.html#l00091">91</a> 行定义.</p>

</div>
</div>
<a id="a57d65bbcd1d3593a1c82ac3765c67ca3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a57d65bbcd1d3593a1c82ac3765c67ca3">&#9670;&nbsp;</a></span>Post()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpServer::Post </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em> = <code><a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>投递一个中断请求 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">func</td><td>完成回调函数 </td></tr>
    <tr><td class="paramname">invoker</td><td>上层用户数据 </td></tr>
  </table>
  </dd>
</dl>

<p>实现了 <a class="el" href="class_c_udp_base.html#a3a32f4a3d3c6dcf2e596167c0388b9e8">CUdpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_server_8cpp_source.html">UdpServer.cpp</a> 第 <a class="el" href="_udp_server_8cpp_source.html#l00063">63</a> 行定义.</p>

</div>
</div>
<a id="a094ecc90a9e5cd326a58928bf48ce08c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a094ecc90a9e5cd326a58928bf48ce08c">&#9670;&nbsp;</a></span>Run()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CUdpServer::Run </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>运行服务 </p>
<dl class="section return"><dt>返回</dt><dd>成功返回true,失败返回false </dd></dl>

<p>实现了 <a class="el" href="class_c_udp_base.html#ae9515a147896f2f4493407a03bb21c03">CUdpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_server_8cpp_source.html">UdpServer.cpp</a> 第 <a class="el" href="_udp_server_8cpp_source.html#l00073">73</a> 行定义.</p>

</div>
</div>
<a id="aed8baba7d9895b6895d9624ee8cb1bf4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aed8baba7d9895b6895d9624ee8cb1bf4">&#9670;&nbsp;</a></span>Run_One()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CUdpServer::Run_One </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>运行一次服务 </p>
<dl class="section return"><dt>返回</dt><dd>成功返回true，失败返回false </dd></dl>

<p>实现了 <a class="el" href="class_c_udp_base.html#abd8f00554bbd461ddc245a8dbc12342b">CUdpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_server_8cpp_source.html">UdpServer.cpp</a> 第 <a class="el" href="_udp_server_8cpp_source.html#l00082">82</a> 行定义.</p>

</div>
</div>
<a id="aeb3e2cc49ab20aeaf396c40e28f58627"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeb3e2cc49ab20aeaf396c40e28f58627">&#9670;&nbsp;</a></span>SetTimer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpServer::SetTimer </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_timer_base.html">CTimerBase</a> &amp;&#160;</td>
          <td class="paramname"><em>timer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="class_c_udp_base.html#a2f978d31627d822f09a185a3f1be5b77">CUdpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_server_8cpp_source.html">UdpServer.cpp</a> 第 <a class="el" href="_udp_server_8cpp_source.html#l00133">133</a> 行定义.</p>

</div>
</div>
<a id="a007ed280c7fb7066bc957425e7dc746b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a007ed280c7fb7066bc957425e7dc746b">&#9670;&nbsp;</a></span>UpdateTimer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CUdpServer::UpdateTimer </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_timer_base.html">CTimerBase</a> &amp;&#160;</td>
          <td class="paramname"><em>timer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="class_c_udp_base.html#a63759990d87d12f87c1950290b54e8ee">CUdpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_server_8cpp_source.html">UdpServer.cpp</a> 第 <a class="el" href="_udp_server_8cpp_source.html#l00124">124</a> 行定义.</p>

</div>
</div>
<a id="a2242ee6ccbb71fa768ba191c8a61f9a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2242ee6ccbb71fa768ba191c8a61f9a2">&#9670;&nbsp;</a></span>WaitServerStop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpServer::WaitServerStop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>通知服务停止并等待 </p>

<p>实现了 <a class="el" href="class_c_udp_base.html#abc3649c6c9856818532e9c2b47b16381">CUdpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_server_8cpp_source.html">UdpServer.cpp</a> 第 <a class="el" href="_udp_server_8cpp_source.html#l00102">102</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="a7c2f7216c3241414dc4d76175240a42d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7c2f7216c3241414dc4d76175240a42d">&#9670;&nbsp;</a></span>_service</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt;<a class="el" href="class_c_io_port_service.html">CIoPortService</a>&gt; CUdpServer::_service</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_udp_server_8h_source.html">UdpServer.h</a> 第 <a class="el" href="_udp_server_8h_source.html#l00098">98</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>H:/project/LibTools/src/socket/internal/<a class="el" href="_udp_server_8h_source.html">UdpServer.h</a></li>
<li>H:/project/LibTools/src/socket/internal/<a class="el" href="_udp_server_8cpp_source.html">UdpServer.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
